<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <title>爱手办</title>
    <meta name="description" content="">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="fragment" content="!" />

    <link href="app/vendor/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="app/vendor/angular-ui-tree/dist/angular-ui-tree.min.css" rel="stylesheet">
    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="css/app.css">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
</head>
<body ng-app="page4">

<div class="container">
    <div class="row" ng-controller="NavbarCtrl">
        <nav class="navbar navbar-default" role="navigation">
            <div class="navbar-header">
                <a class="navbar-brand" href="http://ashouban.com:10710/figure"><img src="images/ashouban.jpg" style="width:60px;height:60px" /></a>
            </div>

            <div class="collapse navbar-collapse navbar-ex1-collapse">
                <ul class="nav navbar-nav">
                    <li ng-show="true==isLogin" ng-repeat="a1 in navbar.dirList" class="dropdown" ng-class="{active:isActive(a1.name)}">
                        <a href="{{ a1.resUrl }}" class="dropdown-toggle" data-toggle="dropdown">{{ a1.name }} <b class="caret"></b></a>
                        <ul class="dropdown-menu menu-top">
                            <li ng-repeat="a2 in a1.children" class="dropdown-submenu">
                                <a tabindex="-1" href="{{ a2.resUrl }}">{{ a2.name }}</a>
                                <ul ng-show="a2.children.length>0" class="dropdown-menu">
                                    <li ng-repeat="a3 in a2.children">
                                        <a href="{{ a3.resUrl }}" ng-click="go(a3.link)">{{ a3.name }}</a>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                    <li class="active"><a href="/">关于</a></li>
                </ul>
                <ul ng-show="true==isLogin" class="nav navbar-nav navbar-right">
                    <li><span ng-model="nickName">欢迎：{{nickName}}  </span></li>
                    <li><span></span></li>
                    <li><button type="button" class="btn btn-link" ng-click="loginOut()">登出</button></li>
                </ul>
                <div ng-show="false==isLogin">
                    <form ng-submit="submit()" class="navbar-form navbar-right">
                        <div class="form-group">
                            <input type="text" name="username" ng-model="username" placeholder="用户名" class="form-control">
                        </div>
                        <div class="form-group">
                            <input type="password" name="password" ng-model="password" placeholder="密码" class="form-control">
                        </div>
                        <button type="submit" class="btn btn-success">登录</button><a href="/addAccount">注册</a>
                    </form>
                </div>
            </div>

        </nav>
    </div>
    <!--<div id="myAlertOk" class="alert alert-success">-->
        <!--<a href="#" class="close" data-dismiss="alert">&times;</a>-->
        <!--<strong>成功！</strong>结果是成功的。-->
    <!--</div>-->
    <!--<div id="myAlertWarn" class="alert alert-warning">-->
        <!--<a href="#" class="close" data-dismiss="alert">&times;</a>-->
        <!--<strong>警告！</strong>您的网络连接有问题。-->
    <!--</div>-->
    <!--<div id="myAlertDanger" class="alert alert-danger">-->
        <!--<a href="#" class="close" data-dismiss="alert">&times;</a>-->
        <!--<strong>警告！</strong>您的网络连接有问题。-->
    <!--</div>-->
    <div ng-view></div>
</div>

<script type="text/javascript" src="app/vendor/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="app/vendor/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="app/vendor/angular/angular.min.js"></script>
<script type="text/javascript" src="app/vendor/angular-route/angular-route.min.js"></script>
<!--<script type="text/javascript" src="app/vendor/bootstrap/dist/js/bootstrap-treeview.min.js"></script>-->
<script type="text/javascript" src="app/vendor/angular-bootstrap-multiselect/angular-bootstrap-multiselect.js"></script>

<script type="text/javascript" src="app/vendor/angular-bootstrap/ui-bootstrap.min.js"></script>
<script type="text/javascript" src="app/vendor/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>
<script type="text/javascript" src="js/bootstrap-paginator.min.js"></script>
<!--<link rel="stylesheet" href="css/bootstrap-multiselect.css" type="text/css"/>-->

<script src="js/vm/app.js"></script>

</body>
</html>
